<template>
  <div>
    大儿子的寒假作业数量：{{ book }}，<button @click="minusHouse($parent)">摧毁老爹房产证</button>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

let book = ref(2)
function minusHouse(parent: any) {
  parent.house -= 1
}

defineExpose({ book })
</script>

<style lang="scss" scoped>

</style>